a1abfab56456c9a910615782c573369224c704bf,graphdb/src/main/java/com/orientechnologies/orient/graph/sql/OCommandExecutorSQLCreateEdge.java,OCommandExecutorSQLCreateEdge,execute,#Map#,108

Before Change


        throw new OCommandExecutionException("Source vertex '" + from + "' not exists");

      for (ORecordId to : toIds) {
        final OrientVertex toVertex = (OrientVertex) graph.getVertex(to);

        final String clsName = clazz.getName();

After Change


        if (from.equals(to)) {
          toVertex = fromVertex;
        } else {
          toVertex = graph.getVertex(to);
        }

        final String clsName = clazz.getName();